package com.zhou.system.management.model.vo;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author xianfeng
 * @date 2023/5/19 21:30
 */
@Data
public class RouteVo {

    private String title;
    private String href;
    private String icon;
    private String target;
    private String image;


    private List<RouteVo> child;

    public void addChild(RouteVo children) {
        if (child == null) {
            child = new ArrayList<>();
        }
        child.add(children);
    }
}
